package com.qf.service.impl;

import com.qf.dao.AccountDao;
import com.qf.service.AccountService;

public class AccountServiceImpl implements AccountService {

    AccountDao accountDao;

    public void setAccountDao(AccountDao accountDao) {
        this.accountDao = accountDao;
    }

    @Override
    public void transfer(String fromName, String toName,double money) {
        accountDao.minusAccount(fromName,money);
        accountDao.plusAccount(fromName,money);
    }
}
